//
//  ConcernAndFanTableCell.m
//  MiaoTu
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ConcernAndFanTableCell.h"
#import "UserInfo.h"
#import "UIImageView+WebCache.h"
#import "UIView+Frame.h"

@interface ConcernAndFanTableCell ()
@property (weak, nonatomic) IBOutlet UIImageView *headImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation ConcernAndFanTableCell

- (void)setItems:(UserInfo *)items {
    _items = items;
    [_headImageView sd_setImageWithURL:[NSURL URLWithString:items.HeadUrl] placeholderImage:[UIImage imageNamed:@"defaultHeadImage"]];
    _nameLabel.text = items.Nickname;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    [_headImageView layoutIfNeeded];
    _headImageView.layer.cornerRadius = _headImageView.dk_height / 2.f;
    _headImageView.layer.masksToBounds = YES;
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
